/*
 * @(#)MtmCalendarRecordSharing.java
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */
package com.dcivision.calendar.bean;

import com.dcivision.framework.bean.AbstractBaseObject;

/**
  MtmCalendarRecordSharing.java

  This class is the serializable bean reflecting business logic uses.

    @author           Tony Chen
    @company          DCIVision Limited
    @creation date    06/12/2003
    @version          $Revision: 1.5 $
*/

public class MtmCalendarRecordSharing extends AbstractBaseObject {

  public static final String REVISION = "$Revision: 1.5 $";

  static final long serialVersionUID = 9032874639122231924L;

  private Integer calendarRecordID = null;
  private Integer userRecordID = null;

  public MtmCalendarRecordSharing() {
    super();
  }

  public Integer getCalendarRecordID() {
    return(this.calendarRecordID);
  }

  public void setCalendarRecordID(Integer calendarRecordID) {
    this.calendarRecordID = calendarRecordID;
  }

  public Integer getUserRecordID() {
    return(this.userRecordID);
  }

  public void setUserRecordID(Integer userRecordID) {
    this.userRecordID = userRecordID;
  }

  //----------------add by Tony------------------
    public String toString() {
        return(this.getClass().getName() + "[id:" + toString(id) + "|calendarRecordID:" + toString(calendarRecordID) + "|userRecordID:" + toString(userRecordID) + "|creatorID:" + toString(creatorID) + "|createDate:" + toString(createDate) + "|updaterID:" + toString(updaterID) + "|updateDate:" + toString(updateDate) + "|creatorName:" + toString(creatorName) + "|updaterName:" + toString(updaterName) + "]");
    }

    public Object clone() {
        MtmCalendarRecordSharing obj = new MtmCalendarRecordSharing();
        obj.setID(this.getID());
        obj.setCalendarRecordID(this.getCalendarRecordID());
        obj.setUserRecordID(this.getUserRecordID());
        obj.setCreatorID(this.getCreatorID());
        obj.setCreateDate(this.getCreateDate());
        obj.setUpdaterID(this.getUpdaterID());
        obj.setUpdateDate(this.getUpdateDate());
        obj.setCreatorName(this.getCreatorName());
        obj.setUpdaterName(this.getUpdaterName());
        return(obj);
    }

    public boolean equals(Object obj) {
        return(obj != null && obj.getClass().getName().equals(this.getClass().getName()) && ((AbstractBaseObject)obj).getID() != null && ((AbstractBaseObject)obj).getID().equals(this.getID()));
    }


}
